package com.ruicar.afs.cloud.afscase.risk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.afscase.risk.entity.CaseTortoiseExposureExcept;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/09/11 16:42
 */
public interface CaseTortoiseExposureExceptMapper extends BaseMapper<CaseTortoiseExposureExcept> {

    @Select("select count(id) from case_tortoise_exposure_except where company_name = #{companyName}")
    int existsCount(@Param("companyName") String companyName);

}
